<?php $data = $args['data']; ?>
<div class="pagelist">
    <?= paginate_links(array(
        'total' => $data['total_pages'],
        'current' => $data['current_page'],
        'prev_text' => __('«'),
        'next_text' => __('»'),
    ));
    ?>
</div>
<style>
    .pagelist {
        display: flex;
        padding: var(--gap) 0;
        justify-items: center;
        align-items: center;
        justify-content: center;
        gap: var(--gap);
        flex-wrap: wrap;
        height: 5rem;
    }

    .pagelist>a {
        padding: .6rem 1rem;
        background-color: #eee;
        border-radius: var(--border-radius);
    }
</style>